package com.xuecheng.order.feign;

import com.xuecheng.commons.model.vo.OrdersVo;
import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.order.service.OrdersService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class FeignCourseRecordController {

    @Autowired
    private OrdersService ordersService;

    //查询支付结果
    @GetMapping("/{orderNo}")
    public ResponseResult<OrdersVo> queryOrders(@PathVariable("orderNo") String orderNo) {
        return ordersService.queryOrders(orderNo);
    }
}
